From: Georges Basile Stavracas Neto Date: Thu, 6 Feb 2020 19:57:53 +0000 (-0300) Subject: authPrompt: Use entry to show question texts X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~74 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=43a45c091dbf99785477f8ade6df9ceea4985eab;p=gnome-shell.git authPrompt: Use entry to show question texts Currently, there is a dedicated label above the entry to display the question text. According to the new mockups for the lock screen, this label doesn't exist; instead, the question is set inside the entry itself, as a hint text. Set the questions as hint texts of the entry, and remove the now unused label. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 6dc914a03..82852207e 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -89,13 +89,6 @@ var AuthPrompt = GObject.registerClass({ y_expand: true, }); this.add_child(this._userWell); - this._label = new St.Label({ - style_class: 'login-dialog-prompt-label', - x_expand: false, - y_expand: true, - }); - - this.add_child(this._label); this._initEntryRow(); @@ -346,11 +339,9 @@ var AuthPrompt = GObject.registerClass({ } setQuestion(question) { - this._label.set_text(question); + this._entry.hint_text = question; - this._label.show(); this._entry.show(); - this._entry.grab_key_focus(); }